<!DOCTYPE html>
<html>
<head>
    <title>工装校对记录</title>
    #parse("sys/header.html")
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <Row :gutter="16" style="margin: 8px 0px 0px 1px">
            <div class="search-group">
                <i-col span="4">
                    <i-input v-model="q.toolsCode" @on-enter="query" placeholder="名称"></i-input>
                </i-col>
                <i-button @click="query">查询</i-button>
                <i-button @click="reloadSearch">重置</i-button>
            </div>
        </Row>
        <Row :gutter="16" style="margin: 3px 0px 0px 0px;">
            <div class="buttons-group">
                <i-button type="success" @click="sample"><i class="fa fa-plus"></i>&nbsp;抽查</i-button>
                <i-button type="info" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</i-button>
                <i-button type="warning" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</i-button>
                <i-button type="error" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</i-button>
            </div>
        </Row>
        <table id="jqGrid"></table>
    </div>
    <Card v-show="!showList">
        <p slot="title">{{title}}</p>
        <i-form ref="formValidate" :model="toolsCheckRecord" :rules="ruleValidate" :label-width="110">
            <Row>
                <i-col span="11">
                    <Form-item label="校对编码" prop="checkCode">
                        <i-input v-model="toolsCheckRecord.checkCode" placeholder="校对编码" readonly></i-input>
                    </Form-item>
                </i-col>
            </Row>
            <Row>
                <i-col span="11">
                    <Form-item label="精度检测编码" prop="toolsRevisionPlanCode">
                        <i-input v-model="toolsCheckRecord.toolsRevisionPlanCode" placeholder="精度检测编码" readonly></i-input>
                    </Form-item>
                </i-col>

                <i-col span="11">
                    <Form-item label="工装唯一标示" prop="toolsOnlyMark">
                        <i-input v-model="toolsCheckRecord.toolsOnlyMark" placeholder="工装唯一标示"></i-input>
                    </Form-item>
                </i-col>
            </Row>
            <Row>
                <i-col span="11">
                    <Form-item label="最近一次检测日期" prop="lastRevisionTime">
                        <Date-picker type="date" format="yyyy-MM-dd" v-model="toolsCheckRecord.lastRevisionTime"
                                     placeholder="最近一次检测日期"></Date-picker>
                    </Form-item>
                </i-col>
                <i-col span="11">
                    <Form-item label="送检日期" prop="inspectionTime">
                        <Date-picker type="date" format="yyyy-MM-dd" v-model="toolsCheckRecord.inspectionTime"
                                     placeholder="送检日期"></Date-picker>
                    </Form-item>
                </i-col>
            </Row>
            <Row>
                <i-col span="11">
                    <Form-item label="计划返回日期" prop="planReturnTime">
                        <Date-picker type="date" format="yyyy-MM-dd" v-model="toolsCheckRecord.planReturnTime"
                                     placeholder="计划返回日期"></Date-picker>
                    </Form-item>
                </i-col>
                <i-col span="11">
                    <Form-item label="实际返回日期" prop="actualReturnTime">
                        <Date-picker type="date" format="yyyy-MM-dd" v-model="toolsCheckRecord.actualReturnTime"
                                     placeholder="实际返回日期"></Date-picker>
                    </Form-item>
                </i-col>
            </Row>


            <!--  <Row>
                  <i-col span="11">
                      <Form-item label="修改时间" prop="updateTime">
                          <i-input v-model="toolsCheckRecord.updateTime" placeholder="修改时间"></i-input>
                      </Form-item>
                  </i-col>
                  <i-col span="11">
                      <Form-item label="修改人" prop="updateUser">
                          <i-input v-model="toolsCheckRecord.updateUser" placeholder="修改人"></i-input>
                      </Form-item>
                  </i-col>
              </Row>
              <Row>
                  <i-col span="11">
                      <Form-item label="操作人" prop="createUser">
                          <i-input v-model="toolsCheckRecord.createUser" placeholder="操作人"></i-input>
                      </Form-item>
                  </i-col>
                  <i-col span="11">
                      <Form-item label="操作时间" prop="createTime">
                          <i-input v-model="toolsCheckRecord.createTime" placeholder="操作时间"></i-input>
                      </Form-item>
                  </i-col>
              </Row>
              <Row>
                  <i-col span="11">
                      <Form-item label="删除标识" prop="delFlag">
                          <i-input v-model="toolsCheckRecord.delFlag" placeholder="删除标识"></i-input>
                      </Form-item>
                  </i-col>
              </Row>-->
            <Form-item>
                <i-button type="primary" @click="handleSubmit('formValidate')">提交</i-button>
                <i-button type="warning" @click="reload" style="margin-left: 8px">
                返回</i-button>
                <i-button type="info" @click="handleReset('formValidate')" style="margin-left: 8px">重置</i-button>
            </Form-item>
        </i-form>
    </Card>
    <div id="check" style="display: none;margin:0px 30px ;">
        <i-form>
            <br/>
            <Form-item label="抽查状态" prop="sampleStatus">
                <i-col span="11">
                    <Radio-group v-model="checkData.sampleStatus">
                    <Radio :label="1"><span>合格</span></Radio>
                    <Radio :label="0"><span>不合格</span></Radio>
                    </Radio-group>
                </i-col>
            </Form-item>
            <Form-item label="备注信息" prop="remark">
                <i-input type="textarea" v-model="checkData.remark" placeholder="备注信息"/>
            </Form-item>
        </i-form>
    </div>
</div>

<script src="${rc.contextPath}/js/tools/toolscheckrecord.js?_${date.systemTime}"></script>
</body>
</html>
